<?php


class Service
{
    public static function get_group($data)
    {
        if ($data->user_type=="user"){
            $group_name=$data->id."_".$data->cid."_talking";
        }else{
            $group_name=$data->cid."_".$data->id."_talking";
        }

        return $group_name;
    }

    public static function get_seeion_group($data)
    {
        if($data["user_type"]=="user"){
            $group_name=$data["id"]."_".$data["cid"]."_talking";
        }else{
            $group_name=$data["cid"]."_".$data["id"]."_talking";
        }

        return $group_name;
    }

}
